package com.hspedu.homework.homework10;

/**
 * @Author Stringzhua
 * @Date 2024/3/3 19:19
 * description:
 */
public class homework10 {
    public static void main(String[] args) {
        //测试
        Doctor doctor1 = new Doctor("jack", 20, "牙科医生", "男", 20000);
        Doctor doctor2 = new Doctor("jack", 21, "牙科医生", "男", 20000);

        System.out.println(doctor1.equals(doctor2));//false
    }
}
